Repository navigation
Conversation
qc ssh set only AWS_DEFAULT_REGION. AWS CLI v2 gives AWS_REGION precedence, so a shell with AWS_REGION set to another region sent ExecuteCommand there. The org-scoped exec policy then denied it with 'on resource: *'. Pass --region and set AWS_REGION as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
qc sshsets onlyAWS_DEFAULT_REGIONfrom the ssh-access response. AWS CLI v2 givesAWS_REGION(and--region) precedence overAWS_DEFAULT_REGION. If the user's shell hasAWS_REGIONset to another region,aws ecs execute-commandgoes to that region. The org-scoped exec policy allows only the platform region, so the call fails:Seen in a support ticket on 2026-10-31: CloudTrail showed the denied calls in ap-southeast-2 while the task runs in ap-southeast-4.
Change
--region <task region>toaws ecs execute-command.AWS_REGIONas well asAWS_DEFAULT_REGIONin the child environment.Tests
tsc --noEmitpasses.jestshows 59 failures in 6 suites (logger, api, context, project-config, spinner, platform-consistency). The same 59 fail on unchangedorigin/main; none coverssh.ts.